import React from 'react';

// export default () => '联系人';
// import React from 'react';
import { inject, observer } from 'mobx-react';
import { WeaErrorPage, WeaTop, WeaTab, WeaRightMenu, WeaNewScroll, WeaFormItem, WeaSearchGroup } from 'ecCom';
import { Row, Button, Spin, Form } from 'antd';
import { WeaForm, WeaSwitch } from 'comsMobx';
import { WeaTableNew } from 'comsMobx';
const WeaTable = WeaTableNew.WeaTable;
const ButtonGroup = Button.Group;
import './contacts/index.less';

import { observable, action, toJS } from 'mobx';
import Top from './contacts/top';
import Contanin from './contacts/contanin';
import OperationBtn from './contacts/operationBtn';
// import { com } from 'weaMeeting';
// import * as weaMeetingD  from 'weaMeeting';
// let { MeetingDialog, MeetingRoomPlan } = com

@inject('emailContactsStore')
@observer
class Contacts extends React.Component {
	constructor(props) {
		super(props);
		this.state = {
		}
	}
	componentDidMount() {
		const { doInit, form } = this.props.emailContactsStore;
		// doInit((conditioninfo) => form.basic.initFormFields(conditioninfo));
		doInit();
	}

	componentWillReceiveProps(nextProps) {
		// if (this.props.location.key !== nextProps.location.key) {
		// 	const { doInit, form } = this.props.votingVotingList;
		// 	doInit();
		// }
	}

	componentWillUnmount() {
		//组件卸载时一般清理一些状态
	    const { initStore } = this.props.emailContactsStore;
	    initStore();
	}
	render() {

		// let {meetingId, visible, dialogType, date, RoomPlanContainer} = this.state;
		let { status, title} = this.props.emailContactsStore;
		// let { showSearchAd, allSessionkey, loading} = toJS(status);
		// let showSearchAdBasic = showSearchAd ? showSearchAd.basic : false;
		// const { loading, timeType, userList, update, activeKey, selectedUser, createVisible, createType, workPlanId, createConditionParams, spinning } = toJS(status);
		// let btns = [
		// 	(<Button type="primary" disabled={false} onClick={ this.doCreate}>新建日程</Button>),
		// 	(<Button type="primary" disabled={true} onClick={this.doImport}>导入日程</Button>),
		// ];

		// let buttonsCreate = [
		// 	(<Button type="primary" disabled={false} onClick={() => { this.refs.customWorkPlanCreate.refs.workPlanCreate.returnValues() }}>保存</Button>),
		// 	(<Button type="primary" disabled={false} onClick={() => { this.refs.customWorkPlanCreate.doClose() }}>关闭</Button>),
		// ];
		// let breadcrumb = this.getBreadcrumb()
		// let { query = false } = this.props.location;
		return (
			<div className="emailContacts" >
		        <Top />
		        <Contanin />
				<OperationBtn/>
			</div>
		)
	}
	getColumns = ()=>{

	}


	getRightMenu = () => {

	}
	onRightMenuClick = () => {

	}




	onChange = () => {

	}



}


export default Contacts
